/*
 * @Date: 2022-04-08 15:14:59
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-23 15:26:01
 * @FilePath: \weibovue\src\store\types.ts
 * @Description: something
 */
//vuex类型
import { UserData } from "../api/types";
import { FanslistType, followListType } from "../components/createWeiBo/types";

export interface atMeReplyItem {
  id?: number;
  commentId?: number; //回复所在的评论
  parantId?: number | null;
  userId?: number;
  reply_userId?: number;
  content?: string;
  createdAt?: string;
  blogId?: number;
  user?: UserData;
}
export interface atMeBlogItem {
  id?: number;
  imageUrl?: string[] | null;
  userId?: number;
  AtBlogs: { userId: number; blogId: number }[];
  content?: string;
  user?: UserData;
  createdAt?: string;
}

export interface GlobalProps {
  isLogin: boolean;
  userInfos: UserData;
  isLoading: boolean;
  followingData: followListType;
  fansData: FanslistType;
  atMeCount: number;
  replyCount: number;
  atMeblogCount: number;
  atMeReplyList: atMeReplyItem[];
  atMeBlogList: atMeBlogItem[];
}
